package com.linkhub.oms.admin.modules.shop.domain.param;

import com.baomidou.mybatisplus.annotation.TableField;
import com.linkhub.oms.admin.modules.user.domain.param.BaseUserParam;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * @Description: AddShopParamV2
 * @Author: Jaycle
 * @Date: 2025/5/20 11:17
 * @Version: 1.0
 */
@Data
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "AddShopParamV2", description = "AddShopParamV2")
public class AddShopParamV2 extends BaseUserParam implements Serializable {
    @ApiModelProperty(value = "临时交互code")
    private String temporaryCode;

    @ApiModelProperty(value = "平台：1-shopify；2-shipo")
    @NotNull(message = "{validation.platForm.notNull}")
    @Range(min = 1, max = 2, message = "{validation.platForm.range}")
    private Integer platForm;

    @ApiModelProperty(value = "商店名称")
    @Length(min = 1, max = 100, message = "{validation.shopName.length}")
    private String shopName;

    @ApiModelProperty(value = "商店地址")
    private String url;

    @ApiModelProperty(value = "商店logo")
    private String logoUrl;

    @ApiModelProperty(value = "access_token，目前只有shopify商店需要")
    private String accessToken;

}
